<!DOCTYPE html> 


<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
  
    RFC 7022 - Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names (CNAMEs)
  
</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>

  @media only screen 
    and (min-width: 992px)
    and (max-width: 1199px) {
      body { font-size: 14pt; }
            div.content { width: 96ex; margin: 0 auto; }
        }
  @media only screen 
    and (min-width: 768px)
    and (max-width: 991px) {
            body { font-size: 14pt; }
            div.content { width: 96ex; margin: 0 auto; }
        }
  @media only screen 
    and (min-width: 480px)
    and (max-width: 767px) {
            body { font-size: 11pt; }
            div.content { width: 96ex; margin: 0 auto; }
        }
  @media only screen 
    and (max-width: 479px) {
            body { font-size: 8pt; }
            div.content { width: 96ex; margin: 0 auto; }
        }
  @media only screen 
    and (min-device-width : 375px) 
    and (max-device-width : 667px) {
            body { font-size: 9.5pt; }
            div.content { width: 96ex; margin: 0; }
        }
  @media only screen 
    and (min-device-width: 1200px) {
            body { font-size: 10pt; margin: 0 4em; }
            div.content { width: 96ex; margin: 0; }
        }
        h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
      font-weight: bold;
            /* line-height: 0pt; */
            display: inline;
            white-space: pre;
            font-family: monospace;
            font-size: 1em;
      font-weight: bold;
        }
        pre {
            font-size: 1em;
            margin-top: 0px;
            margin-bottom: 0px;
        }
  .pre {
      white-space: pre;
      font-family: monospace;
  }
  .header{
      font-weight: bold;
  }
        .newpage {
            page-break-before: always;
        }
        .invisible {
            text-decoration: none;
            color: white;
        }
        @media print {
            body {
                margin-top: 5em;
                font-family: monospace;
                font-size: 10.5pt;
            }
            h1, h2, h3, h4, h5, h6 {
                font-size: 1em;
            }
        
            a:link, a:visited {
                color: inherit;
                text-decoration: none;
            }
            .noprint {
                display: none;
            }
        }
  @media screen {
      .grey, .grey a:link, .grey a:visited {
    color: #777;
      }
            .meta-info {
                background-color: #EEE;
            }
            .top {
                border-top: 7px solid #EEE;
            }
            .pad {
                padding-top: 7px;
                line-height: 24px;
                padding-bottom: 4px;
            }
            .bgwhite  { background-color: white; }
            .bgred    { background-color: #F44; }
            .bggrey   { background-color: #666; }
            .bgbrown  { background-color: #840; }            
            .bgorange { background-color: #FA0; }
            .bgyellow { background-color: #EE0; }
            .bgmagenta{ background-color: #F4F; }
            .bgblue   { background-color: #66F; }
            .bgcyan   { background-color: #4DD; }
            .bggreen  { background-color: #4F4; }

            .legend   { font-size: 90%; }
            .cplate   { font-size: 70%; border: solid grey 1px; }
  }
    
     

.bgwhite  { background-color: white; }
.bgred    { background-color: #F44; }
.bggrey   { background-color: #666; }
.bgbrown  { background-color: #840; }            
.bgorange { background-color: #FA0; }
.bgyellow { background-color: #EE0; }
.bgmagenta{ background-color: #F4F; }
.bgblue   { background-color: #66F; }
.bgcyan   { background-color: #4DD; }
.bggreen  { background-color: #4F4; }

.draftcontent { margin-top:0px !important;}


    </style>

    
  <link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/draft-ietf-avtcore-6222bis/">
  <meta name="description" content="Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names (CNAMEs) (RFC )">


    
    <link rel="shortcut icon" href="https://www.ietf.org/lib/dt/7.46.0/ietf/images/ietf-icon-blue3.png">
    
    <link rel="apple-touch-icon" href="https://www.ietf.org/lib/dt/7.46.0/ietf/images/apple-touch-icon.png">
  </head>

  <body style="padding-top: 0;">

	  <div class="content" id="content">
        
  
 
  <div class="rfcmarkup">
    <div class="noprint" style="height: 6px;">
      <div onmouseover="this.style.cursor='pointer';"
         onclick="showLegend();"
         onmouseout="hideLegend()"
         style="height: 6px; min-height: 6px; width: 96ex; position: absolute; margin-top:0; "
         class="meta-info bgblue"
         title="Click for colour legend." >&nbsp;</div>
      <div id="legend"
           class="meta-info noprint pre legend"
           style="position:absolute; top: 4px; left: 4ex; visibility:hidden; background-color: white; padding: 4px 9px 5px 7px; border: solid #345 1px; "
           onmouseover="showLegend();"
           onmouseout="hideLegend();">
      </div>
    </div>

    
      <div class="noprint">
	 <pre class="pre meta-info">[<a href="https://datatracker.ietf.org" title="Document search and retrieval page">Search</a>] [<a href="https://www.rfc-editor.org/rfc/rfc7022.txt" title="Plaintext version of this document">txt</a>|<a href="https://www.rfc-editor.org/rfc/rfc7022.html" title="HTML version of this document, from XML2RFC">html</a>|<a href="https://www.rfc-editor.org/rfc/pdfrfc/rfc7022.txt.pdf" title="PDF version of this document">pdf</a>|<a href="/doc/rfc7022/bibtex/" title="BibTex entry for this document">bibtex</a>] [<a href="/doc/rfc7022/" title="Datatracker information for this document">Tracker</a>] [<a href="/group/avtcore/" title="The working group handling this document">WG</a>] [<a href="mailto:draft-ietf-avtcore-6222bis@ietf.org?subject=draft-ietf-avtcore-6222bis" title="Send email to the document authors">Email</a>] [<a href="https://www.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-avtcore-6222bis-06.txt" title="Inline diff (wdiff)">Diff1</a>] [<a href="https://www.ietf.org/rfcdiff?url2=draft-ietf-avtcore-6222bis-06.txt" title="Side-by-side diff">Diff2</a>] [<a href="https://www.ietf.org/tools/idnits?url=https://www.ietf.org/archive/id/draft-ietf-avtcore-6222bis-06.txt" title="Run an idnits check of this document">Nits</a>]

From: <a href="/doc/html/draft-ietf-avtcore-6222bis-06">draft-ietf-avtcore-6222bis-06</a>                    Proposed Standard</pre>
      </div>
    

    <div class="draftcontent">
    <pre>Internet Engineering Task Force (IETF)                          A. Begen
Request for Comments: 7022                                         Cisco
Obsoletes: <a href="/doc/html/rfc6222">6222</a>                                               C. Perkins
Updates: <a href="/doc/html/rfc3550">3550</a>                                      University of Glasgow
Category: Standards Track                                        D. Wing
ISSN: 2070-1721                                                    Cisco
                                                             E. Rescorla
                                                              RTFM, Inc.
                                                          September 2013


          <span class="h1">Guidelines for Choosing RTP Control Protocol (RTCP)</span>
                        <span class="h1">Canonical Names (CNAMEs)</span>

Abstract

   The RTP Control Protocol (RTCP) Canonical Name (CNAME) is a
   persistent transport-level identifier for an RTP endpoint.  While the
   Synchronization Source (SSRC) identifier of an RTP endpoint may
   change if a collision is detected or when the RTP application is
   restarted, its RTCP CNAME is meant to stay unchanged, so that RTP
   endpoints can be uniquely identified and associated with their RTP
   media streams.

   For proper functionality, RTCP CNAMEs should be unique within the
   participants of an RTP session.  However, the existing guidelines for
   choosing the RTCP CNAME provided in the RTP standard (<a href="/doc/html/rfc3550">RFC 3550</a>) are
   insufficient to achieve this uniqueness.  <a href="/doc/html/rfc6222">RFC 6222</a> was published to
   update those guidelines to allow endpoints to choose unique RTCP
   CNAMEs.  Unfortunately, later investigations showed that some parts
   of the new algorithms were unnecessarily complicated and/or
   ineffective.  This document addresses these concerns and replaces <a href="/doc/html/rfc6222">RFC</a>
   <a href="/doc/html/rfc6222">6222</a>.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in <a href="/doc/html/rfc5741#section-2">Section&nbsp;2 of RFC 5741</a>.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   <a href="https://www.rfc-editor.org/info/rfc7022">http://www.rfc-editor.org/info/rfc7022</a>.




<span class="grey">Begen, et al.                Standards Track                    [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


Copyright Notice

   Copyright (c) 2013 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to <a href="/doc/html/bcp78">BCP 78</a> and the IETF Trust&#x27;s Legal
   Provisions Relating to IETF Documents
   (<a href="https://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   <a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
   <a href="#section-2">2</a>. Requirements Notation ...........................................<a href="#page-3">3</a>
   3. Deficiencies with Earlier Guidelines for Choosing an
      RTCP CNAME ......................................................<a href="#page-3">3</a>
   <a href="#section-4">4</a>. Choosing an RTCP CNAME ..........................................<a href="#page-4">4</a>
      <a href="#section-4.1">4.1</a>. Persistent RTCP CNAMEs versus Per-Session RTCP CNAMEs ......<a href="#page-4">4</a>
      <a href="#section-4.2">4.2</a>. Requirements ...............................................<a href="#page-5">5</a>
   <a href="#section-5">5</a>. Procedure to Generate a Unique Identifier .......................<a href="#page-6">6</a>
   <a href="#section-6">6</a>. Security Considerations .........................................<a href="#page-7">7</a>
      <a href="#section-6.1">6.1</a>. Considerations on Uniqueness of RTCP CNAMEs ................<a href="#page-7">7</a>
      <a href="#section-6.2">6.2</a>. Session Correlation Based on RTCP CNAMEs ...................<a href="#page-7">7</a>
   <a href="#section-7">7</a>. Acknowledgments .................................................<a href="#page-8">8</a>
   <a href="#section-8">8</a>. References ......................................................<a href="#page-8">8</a>
      <a href="#section-8.1">8.1</a>. Normative References .......................................<a href="#page-8">8</a>
      <a href="#section-8.2">8.2</a>. Informative References .....................................<a href="#page-8">8</a>

<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>

   In <a href="/doc/html/rfc3550#section-6.5.1">Section&nbsp;6.5.1 of [RFC3550]</a>, there are a number of recommendations
   for choosing a unique RTCP CNAME for an RTP endpoint.  However, in
   practice, some of these methods are not guaranteed to produce a
   unique RTCP CNAME.  [<a href="/doc/html/rfc6222" title="&quot;Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names (CNAMEs)&quot;">RFC6222</a>] updated the guidelines for choosing
   RTCP CNAMEs, superseding those presented in <a href="/doc/html/rfc3550#section-6.5.1">Section&nbsp;6.5.1 of
   [RFC3550]</a>.  Unfortunately, some parts of the new algorithms are
   rather complicated and also produce RTCP CNAMEs that, in some cases,
   are potentially linkable over multiple RTCP sessions even if a new
   RTCP CNAME is generated for each session.  This document specifies a
   replacement for the algorithm in <a href="/doc/html/rfc6222#section-5">Section&nbsp;5 of [RFC6222]</a>, which does
   not have this limitation and is also simpler to implement.





<span class="grey">Begen, et al.                Standards Track                    [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


   For a discussion on the linkability of RTCP CNAMEs produced by
   [<a href="/doc/html/rfc6222" title="&quot;Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names (CNAMEs)&quot;">RFC6222</a>], refer to [<a href="#ref-RESCORLA" title="&quot;Random algorithm for RTP CNAME generation&quot;">RESCORLA</a>].

<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Requirements Notation</span>

   The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;,
   &quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;, &quot;MAY&quot;, and
   &quot;OPTIONAL&quot; in this document are to be interpreted as described in
   [<a href="/doc/html/rfc2119" title="&quot;Key words for use in RFCs to Indicate Requirement Levels&quot;">RFC2119</a>].

<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  Deficiencies with Earlier Guidelines for Choosing an RTCP CNAME</span>

   The recommendation in [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] is to generate an RTCP CNAME of the
   form &quot;user@host&quot; for multiuser systems, or &quot;host&quot; if the username is
   not available.  The &quot;host&quot; part is specified to be the fully
   qualified domain name (FQDN) of the host from which the real-time
   data originates.  While this guidance was appropriate at the time
   [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] was written, FQDNs are no longer necessarily unique and can
   sometimes be common across several endpoints in large service
   provider networks.  This document replaces the use of the FQDN as an
   RTCP CNAME by alternative mechanisms.

   IPv4 addresses are also suggested for use in RTCP CNAMEs in
   [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>], where the &quot;host&quot; part of the RTCP CNAME is the numeric
   representation of the IPv4 address of the interface from which the
   RTP data originates.  As noted in [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>], the use of private
   network address space [<a href="/doc/html/rfc1918" title="&quot;Address Allocation for Private Internets&quot;">RFC1918</a>] can result in hosts having network
   addresses that are not globally unique.  Additionally, this shared
   use of the same IPv4 address can occur with public IPv4 addresses if
   multiple hosts are assigned the same public IPv4 address and are
   connected to a Network Address Translation (NAT) device [<a href="/doc/html/rfc3022" title="&quot;Traditional IP Network Address Translator (Traditional NAT)&quot;">RFC3022</a>].
   When multiple hosts share the same IPv4 address, whether private or
   public, using the IPv4 address as the RTCP CNAME leads to RTCP CNAMEs
   that are not necessarily unique.

   It is also noted in [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] that if hosts with private addresses
   and no direct IP connectivity to the public Internet have their RTP
   packets forwarded to the public Internet through an RTP-level
   translator, they could end up having non-unique RTCP CNAMEs.  The
   suggestion in [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] is that such applications provide a
   configuration option to allow the user to choose a unique RTCP CNAME;
   this technique puts the burden on the translator to translate RTCP
   CNAMEs from private addresses to public addresses if necessary to
   keep private addresses from being exposed.  Experience has shown that
   this does not work well in practice.






<span class="grey">Begen, et al.                Standards Track                    [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  Choosing an RTCP CNAME</span>

   It is difficult, and in some cases impossible, for a host to
   determine if there is a NAT between itself and its RTP peer.
   Furthermore, even some public IPv4 addresses can be shared by
   multiple hosts in the Internet.  Using the numeric representation of
   the IPv4 address as the &quot;host&quot; part of the RTCP CNAME is NOT
   RECOMMENDED.

<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>.  Persistent RTCP CNAMEs versus Per-Session RTCP CNAMEs</span>

   The RTCP CNAME can be either persistent across different RTP sessions
   for an RTP endpoint or unique per session, meaning that an RTP
   endpoint chooses a different RTCP CNAME for each RTP session.

   An RTP endpoint that is emitting multiple related RTP streams that
   require synchronization at the other endpoint(s) MUST use the same
   RTCP CNAME for all streams that are to be synchronized.  This
   requires a short-term, persistent RTCP CNAME that is common across
   several RTP streams, and potentially across several related RTP
   sessions.  A common example of such use occurs when syncing audio and
   video streams in a multimedia session, where a single participant has
   to use the same RTCP CNAME for its audio RTP session and for its
   video RTP session.  Another example might be to synchronize the
   layers of a layered audio codec, where the same RTCP CNAME has to be
   used for each layer.

   If the multiple RTP streams in an RTP session are not related, and
   thus do not require synchronization, an RTP endpoint can use
   different RTCP CNAMEs for these streams.

   A longer-term persistent RTCP CNAME is sometimes useful to facilitate
   third-party monitoring, consistent with [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>].  One such use
   might be to allow network management tools to correlate the ongoing
   quality of service for a participant across multiple RTP sessions for
   fault diagnosis and to understand long-term network performance
   statistics.  An application developer that wishes to discourage this
   type of third-party monitoring can choose to generate a unique RTCP
   CNAME for each RTP session, or group of related RTP sessions, that
   the application will join.  Such a per-session RTCP CNAME cannot be
   used for traffic analysis, and so provides some limited form of
   privacy.  Note that there are non-RTP means that can be used by a
   third party to correlate RTP sessions, so the use of per-session RTCP
   CNAMEs will not prevent a determined traffic analyst from monitoring
   such sessions.






<span class="grey">Begen, et al.                Standards Track                    [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


   This memo defines several different ways by which an implementation
   can choose an RTCP CNAME.  It is possible, and legitimate, for
   independent implementations to make different choices of RTCP CNAME
   when running on the same host.  This can hinder third-party
   monitoring, unless some external means is provided to configure a
   persistent choice of RTCP CNAME for those implementations.

   Note that there is no backwards compatibility issue (with
   implementations compatible with [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>]) introduced in this memo,
   since the RTCP CNAMEs are opaque strings to remote peers.

<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>.  Requirements</span>

   RTP endpoints will choose to generate RTCP CNAMEs that are persistent
   or per-session.  An RTP endpoint that wishes to generate a persistent
   RTCP CNAME MUST use one of the following two methods:

   o  To produce a long-term persistent RTCP CNAME, an RTP endpoint MUST
      generate and store a Universally Unique IDentifier (UUID)
      [<a href="/doc/html/rfc4122" title="&quot;A Universally Unique IDentifier (UUID) URN Namespace&quot;">RFC4122</a>] for use as the &quot;host&quot; part of its RTCP CNAME.  The UUID
      MUST be version 1, 2, or 4, as described in [<a href="/doc/html/rfc4122" title="&quot;A Universally Unique IDentifier (UUID) URN Namespace&quot;">RFC4122</a>], with the
      &quot;urn:uuid:&quot; stripped, resulting in a 36-octet printable string
      representation.

   o  To produce a short-term persistent RTCP CNAME, an RTP endpoint
      MUST generate and use an identifier by following the procedure
      described in <a href="#section-5">Section 5</a>.  That procedure is performed at least once
      per initialization of the software.  After obtaining an
      identifier, minimally the least significant 96 bits SHOULD be
      converted to ASCII using Base64 encoding [<a href="/doc/html/rfc4648" title="&quot;The Base16, Base32, and Base64 Data Encodings&quot;">RFC4648</a>] (to compromise
      between packet size and uniqueness -- refer to <a href="#section-6.1">Section 6.1</a>).  If
      96 bits are used, the resulting string will be 16 octets.  Note
      the Base64 encoded value cannot exceed the maximum RTCP CNAME
      length of 255 octets [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>].

   In the two cases above, the &quot;user@&quot; part of the RTCP CNAME MAY be
   omitted on single-user systems and MAY be replaced by an opaque token
   on multiuser systems, to preserve privacy.

   An RTP endpoint that wishes to generate a per-session RTCP CNAME MUST
   use the following method:

   o  For every new RTP session, a new RTCP CNAME is generated following
      the procedure described in <a href="#section-5">Section 5</a>.  After performing that
      procedure, minimally the least significant 96 bits SHOULD be
      converted to ASCII using Base64 encoding [<a href="/doc/html/rfc4648" title="&quot;The Base16, Base32, and Base64 Data Encodings&quot;">RFC4648</a>].  The RTCP





<span class="grey">Begen, et al.                Standards Track                    [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


      CNAME cannot change over the life of an RTP session [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>].
      The &quot;user@&quot; part of the RTCP CNAME is omitted when generating
      per-session RTCP CNAMEs.

   It is believed that obtaining uniqueness (with a high probability) is
   an important property that requires careful evaluation of the method.
   This document provides a number of methods, at least one of which
   would be suitable for any given deployment scenarios.  This document
   therefore does not provide for the implementor to define and select
   an alternative method.

   A future specification might define an alternative method for
   generating RTCP CNAMEs, as long as the proposed method has
   appropriate uniqueness and there is consistency between the methods
   used for multiple RTP sessions that are to be correlated.  However,
   such a specification needs to be reviewed and approved before
   deployment.

   The mechanisms described in this document are to be used to generate
   RTCP CNAMEs, and they are not to be used for generating general-
   purpose unique identifiers.

<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Procedure to Generate a Unique Identifier</span>

   To locally produce a unique identifier, one simply generates a
   cryptographically pseudorandom value as described in [<a href="/doc/html/rfc4086" title="&quot;Randomness Requirements for Security&quot;">RFC4086</a>].  This
   value MUST be at least 96 bits.

   The biggest bottleneck to implementation of this algorithm is the
   availability of an appropriate cryptographically secure pseudorandom
   number generator (CSPRNG).  In any setting that already has a secure
   PRNG, this algorithm described is far simpler than the algorithm
   described in <a href="/doc/html/rfc6222#section-5">Section&nbsp;5 of [RFC6222]</a>.  SIP stacks [<a href="/doc/html/rfc3261" title="&quot;SIP: Session Initiation Protocol&quot;">RFC3261</a>] are
   required to use cryptographically random numbers to generate To and
   From tags (<a href="#section-19.3">Section 19.3</a>).  Real-Time Communications on the Web
   (RTCWEB) implementations [<a href="#ref-ARCH" title="&quot;WebRTC Security Architecture&quot;">ARCH</a>] will need to have secure PRNGs to
   implement ICE [<a href="/doc/html/rfc5245" title="&quot;Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols&quot;">RFC5245</a>] and DTLS-SRTP [<a href="/doc/html/rfc5764" title="&quot;Datagram Transport Layer Security (DTLS) Extension to Establish Keys for the Secure Real-time Transport Protocol (SRTP)&quot;">RFC5764</a>].  And, of course,
   essentially every Web browser already supports TLS, which requires a
   secure PRNG.












<span class="grey">Begen, et al.                Standards Track                    [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  Security Considerations</span>

   The security considerations of [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] apply to this memo.

<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>.  Considerations on Uniqueness of RTCP CNAMEs</span>

   The considerations in this section apply to random RTCP CNAMEs.

   The recommendations given in this document for RTCP CNAME generation
   ensure that a set of cooperating participants in an RTP session will,
   with very high probability, have unique RTCP CNAMEs.  However,
   neither [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>] nor this document provides any way to ensure that
   participants will choose RTCP CNAMEs appropriately; thus,
   implementations MUST NOT rely on the uniqueness of RTCP CNAMEs for
   any essential security services.  This is consistent with [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>],
   which does not require that RTCP CNAMEs are unique within a session
   but instead says that condition SHOULD hold.  As described in the
   Security Considerations section of [<a href="/doc/html/rfc3550" title="&quot;RTP: A Transport Protocol for Real-Time Applications&quot;">RFC3550</a>], because each
   participant in a session is free to choose its own RTCP CNAME, they
   can do so in such a way as to impersonate another participant.  That
   is, participants are trusted not to impersonate each other.  No
   recommendation for generating RTCP CNAMEs can prevent this
   impersonation, because an attacker can neglect the stipulation.
   Secure RTP (SRTP) [<a href="/doc/html/rfc3711" title="&quot;The Secure Real-time Transport Protocol (SRTP)&quot;">RFC3711</a>] keeps unauthorized entities out of an RTP
   session, but it does not aim to prevent impersonation attacks from
   authorized entities.

   Because of the properties of the PRNG, there is no significant
   privacy/linkability difference between long and short RTCP CNAMEs.
   However, the requirement to generate unique RTCP CNAMEs implies a
   certain minimum length.  A length of 96 bits allows on the order of
   2^{40} RTCP CNAMEs globally before there is a large chance of
   collision (there is about a 50% chance of one collision after 2^{48}
   RTCP CNAMEs).

<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>.  Session Correlation Based on RTCP CNAMEs</span>

   Earlier recommendations for RTCP CNAME generation allowed a fixed
   RTCP CNAME value, which allows an attacker to easily link separate
   RTP sessions, eliminating the obfuscation provided by IPv6 privacy
   addresses [<a href="/doc/html/rfc4941" title="&quot;Privacy Extensions for Stateless Address Autoconfiguration in IPv6&quot;">RFC4941</a>] or IPv4 Network Address Port Translation (NAPT)
   [<a href="/doc/html/rfc3022" title="&quot;Traditional IP Network Address Translator (Traditional NAT)&quot;">RFC3022</a>].

   This specification no longer describes a procedure to generate fixed
   RTCP CNAME values, so RTCP CNAME values no longer provide such
   linkage between RTP sessions.  This was necessary to eliminate such





<span class="grey">Begen, et al.                Standards Track                    [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


   linking by an attacker, but of course complicates linking by traffic
   analysis devices (e.g., devices that are looking for dropped or
   delayed packets).

<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  Acknowledgments</span>

   Thanks to Marc Petit-Huguenin, who suggested using UUIDs in
   generating RTCP CNAMEs.  Also, thanks to David McGrew for providing
   text for the Security Considerations section in <a href="/doc/html/rfc6222">RFC 6222</a>.

<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  References</span>

<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>.  Normative References</span>

   [<a id="ref-RFC3550">RFC3550</a>]  Schulzrinne, H., Casner, S., Frederick, R., and V.
              Jacobson, &quot;RTP: A Transport Protocol for Real-Time
              Applications&quot;, STD 64, <a href="/doc/html/rfc3550">RFC 3550</a>, July 2003.

   [<a id="ref-RFC2119">RFC2119</a>]  Bradner, S., &quot;Key words for use in RFCs to Indicate
              Requirement Levels&quot;, <a href="/doc/html/bcp14">BCP 14</a>, <a href="/doc/html/rfc2119">RFC 2119</a>, March 1997.

   [<a id="ref-RFC4122">RFC4122</a>]  Leach, P., Mealling, M., and R. Salz, &quot;A Universally
              Unique IDentifier (UUID) URN Namespace&quot;, <a href="/doc/html/rfc4122">RFC 4122</a>, July
              2005.

   [<a id="ref-RFC4648">RFC4648</a>]  Josefsson, S., &quot;The Base16, Base32, and Base64 Data
              Encodings&quot;, <a href="/doc/html/rfc4648">RFC 4648</a>, October 2006.

   [<a id="ref-RFC4086">RFC4086</a>]  Eastlake, D., Schiller, J., and S. Crocker, &quot;Randomness
              Requirements for Security&quot;, <a href="/doc/html/bcp106">BCP 106</a>, <a href="/doc/html/rfc4086">RFC 4086</a>, June 2005.

<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>.  Informative References</span>

   [<a id="ref-RFC6222">RFC6222</a>]  Begen, A., Perkins, C., and D. Wing, &quot;Guidelines for
              Choosing RTP Control Protocol (RTCP) Canonical Names
              (CNAMEs)&quot;, <a href="/doc/html/rfc6222">RFC 6222</a>, April 2011.

   [<a id="ref-RFC1918">RFC1918</a>]  Rekhter, Y., Moskowitz, R., Karrenberg, D., Groot, G., and
              E. Lear, &quot;Address Allocation for Private Internets&quot;, <a href="/doc/html/bcp5">BCP</a>
              <a href="/doc/html/bcp5">5</a>, <a href="/doc/html/rfc1918">RFC 1918</a>, February 1996.

   [<a id="ref-RFC3022">RFC3022</a>]  Srisuresh, P. and K. Egevang, &quot;Traditional IP Network
              Address Translator (Traditional NAT)&quot;, <a href="/doc/html/rfc3022">RFC 3022</a>, January
              2001.

   [<a id="ref-RFC3711">RFC3711</a>]  Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K.
              Norrman, &quot;The Secure Real-time Transport Protocol (SRTP)&quot;,
              <a href="/doc/html/rfc3711">RFC 3711</a>, March 2004.



<span class="grey">Begen, et al.                Standards Track                    [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


   [<a id="ref-RFC4941">RFC4941</a>]  Narten, T., Draves, R., and S. Krishnan, &quot;Privacy
              Extensions for Stateless Address Autoconfiguration in
              IPv6&quot;, <a href="/doc/html/rfc4941">RFC 4941</a>, September 2007.

   [<a id="ref-RFC5245">RFC5245</a>]  Rosenberg, J., &quot;Interactive Connectivity Establishment
              (ICE): A Protocol for Network Address Translator (NAT)
              Traversal for Offer/Answer Protocols&quot;, <a href="/doc/html/rfc5245">RFC 5245</a>, April
              2010.

   [<a id="ref-RFC5764">RFC5764</a>]  McGrew, D. and E. Rescorla, &quot;Datagram Transport Layer
              Security (DTLS) Extension to Establish Keys for the Secure
              Real-time Transport Protocol (SRTP)&quot;, <a href="/doc/html/rfc5764">RFC 5764</a>, May 2010.

   [<a id="ref-RFC3261">RFC3261</a>]  Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
              A., Peterson, J., Sparks, R., Handley, M., and E.
              Schooler, &quot;SIP: Session Initiation Protocol&quot;, <a href="/doc/html/rfc3261">RFC 3261</a>,
              June 2002.

   [<a id="ref-ARCH">ARCH</a>]     Rescorla, E., &quot;WebRTC Security Architecture&quot;, Work in
              Progress, July 2013.

   [<a id="ref-RESCORLA">RESCORLA</a>] Rescorla, E., &quot;Random algorithm for RTP CNAME generation&quot;,
              Work in Progress, July 2012.




























<span class="grey">Begen, et al.                Standards Track                    [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="/doc/html/rfc7022">RFC 7022</a>                 Choosing an RTCP CNAME           September 2013</span>


Authors&#x27; Addresses

   Ali Begen
   Cisco
   181 Bay Street
   Toronto, ON  M5J 2T3
   CANADA

   EMail: abegen@cisco.com


   Colin Perkins
   University of Glasgow
   School of Computing Science
   Glasgow  G12 8QQ
   UK

   EMail: csp@csperkins.org


   Dan Wing
   Cisco Systems, Inc.
   170 West Tasman Drive
   San Jose, California  95134
   USA

   EMail: dwing@cisco.com


   Eric Rescorla
   RTFM, Inc.
   2064 Edgewood Drive
   Palo Alto, CA  94303
   USA

   Phone: +1 650 678 2350
   EMail: ekr@rtfm.com














Begen, et al.                Standards Track                   [Page 10]
</pre>
    </div>

  </div>


        
	  </div>

	

	

    </div>

      
    <script type="text/javascript"><!--
    var legend_html = "Colour legend:<br /> \
     <table> \
        <tr><td>Unknown:</td>                   <td><span class='cplate bgwhite'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Draft:</td>                     <td><span class='cplate bgred'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Informational:</td>             <td><span class='cplate bgorange'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Experimental:</td>              <td><span class='cplate bgyellow'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Best Common Practice:</td>      <td><span class='cplate bgmagenta'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Proposed Standard:</td>         <td><span class='cplate bgblue'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Draft Standard (old designation):</td> <td><span class='cplate bgcyan'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Internet Standard:</td>         <td><span class='cplate bggreen'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Historic:</td>                  <td><span class='cplate bggrey'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
        <tr><td>Obsolete:</td>                  <td><span class='cplate bgbrown'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr> \
    </table>";
    function showLegend() {
        var elem = document.getElementById('legend');
        elem.innerHTML = legend_html
        elem.style.visibility='visible';
    }
    function hideLegend() {
        var elem = document.getElementById('legend');
        elem.style.visibility='hidden';
        elem.innerHTML = "";
    }
    // -->
    </script>

  </body>
</html>